package com.hzit.ms.mapper;

import com.hzit.ms.model.SkGoodsInfo;
import com.hzit.ms.model.SkillGoodsInfo;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface SkGoodsInfoMapper {

    int deleteByPrimaryKey(Long id);

    int insert(SkGoodsInfo record);

    int insertSelective(SkGoodsInfo record);

    SkGoodsInfo selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(SkGoodsInfo record);

    int updateByPrimaryKey(SkGoodsInfo record);

    /**
     * 获取秒杀商品列表
     * @return
     */
    List<SkillGoodsInfo> querySkillGoods();

    /**
     * 根据商品ID 查询详情
     * @param goodsId
     * @return
     */
    SkillGoodsInfo querySkillGoodsDetail(@Param("goodsId") String goodsId);
}